package kr.ac.kongju.gedl.index.vo;

import kr.ac.kongju.gedl.cmmn.vo.CommonVO;
import kr.ac.kongju.gedl.item.vo.ItemVO;


public class IndexLevelVO extends CommonVO{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 3150324868157914590L;
	
	private String indexLevelId = "";		//색인어기사ID
	private String indexId = "";			//색인어 ID
	private String indexRelatedId = "";		//연관색인어ID
	private String levelId = "";			//기사ID
	private IndexInfoVO indexInfo = new IndexInfoVO();
	private ItemVO itemLevel = new ItemVO();
	public IndexLevelVO() {
		super();
	}
	public IndexLevelVO(String indexLevelId) {
		super();
		this.indexLevelId = indexLevelId;
	}
	public String getIndexLevelId() {
		return indexLevelId;
	}
	public void setIndexLevelId(String indexLevelId) {
		this.indexLevelId = indexLevelId;
	}
	public String getIndexId() {
		return indexId;
	}
	public void setIndexId(String indexId) {
		this.indexId = indexId;
	}
	public String getIndexRelatedId() {
		return indexRelatedId;
	}
	public void setIndexRelatedId(String indexRelatedId) {
		this.indexRelatedId = indexRelatedId;
	}
	public String getLevelId() {
		return levelId;
	}
	public void setLevelId(String levelId) {
		this.levelId = levelId;
	}
	
	public IndexInfoVO getIndexInfo() {
		return indexInfo;
	}
	public void setIndexInfo(IndexInfoVO indexInfo) {
		this.indexInfo = indexInfo;
	}
	
	public ItemVO getItemLevel() {
		return itemLevel;
	}
	public void setItemLevel(ItemVO itemLevel) {
		this.itemLevel = itemLevel;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((indexLevelId == null) ? 0 : indexLevelId.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		IndexLevelVO other = (IndexLevelVO) obj;
		if (indexLevelId == null) {
			if (other.indexLevelId != null)
				return false;
		} else if (!indexLevelId.equals(other.indexLevelId))
			return false;
		return true;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("IndexLevelVO [indexId=");
		builder.append(indexId);
		builder.append(", indexLevelId=");
		builder.append(indexLevelId);
		builder.append(", indexRelatedId=");
		builder.append(indexRelatedId);
		builder.append(", levelId=");
		builder.append(levelId);
		builder.append("]");
		return builder.toString();
	}
}
